package org.ddd.section5.example5_6;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class GetResource {

	public String getRourrce() throws IOException {
		BufferedReader br = new BufferedReader(new FileReader("resouce.txt"));
		StringBuffer txtStr = new StringBuffer();
		String data;
		data = br.readLine();
		while (data != null) {
			txtStr.append(data);
			data = br.readLine();
		}
		return txtStr.toString();
	}
}
